home *** CD-ROM | disk | FTP | other *** search
/ BBS in a Box 5 / BBS in a Box -Volume V (BBS in a Box) (April 1992).iso / Files / Prog / M / MacOberon.cpt / MacOberon122.sit / Beginner.Text (.txt) next >
Encoding:
Oberon Text  |  1990-10-18  |  5.5 KB  |  99 lines  |  [.Ob./.Ob*]

  1. Syntax14b.Scn.Fnt
  2. Syntax10.Scn.Fnt
  3. Syntax10i.Scn.Fnt
  4. Syntax10b.Scn.Fnt
  5. MacOberon V1.21
  6. Copyright (C) 1990 by Institut f
  7. r Computersysteme
  8. Eidgen
  9. ssische Technische Hochschule Z
  10. ETH-Zentrum, CH-8092 Z
  11. rich, Switzerland
  12. MacOberon is distributed on an "as is" basis;
  13. no fitness for any particular purpose is claimed or implied.
  14. Permission for unlimited duplication and distribution is
  15. herewith granted, provided that this notice is distributed
  16. unaltered along with the Software.
  17. <- This is the Scroll Bar
  18. Scroll upwards by moving the mouse into the Scroll Bar next to the line
  19. that should appear at the top of the window and clicking the mouse button.
  20. Getting started with MacOberon
  21. Oberon is an extensible system.  There is no difference between functions
  22. offered by the operating system and functions added by a user which enhance
  23. the basic system.  As a matter of fact, Oberon abandons the notion of a
  24. Program altogether.  Atomic actions in Oberon are called Commands.
  25. Commands are parameterless procedures which may be executed directly
  26. from the operating system interface.  Procedures from anywhere in a module
  27. hierarchy may be called in this way and there is no need for a "top" module
  28. which distributes commands to other modules.  Instead, command distribution
  29. is built into the operating system.  When a command terminates, control is
  30. passed back to the operating system's main loop.  However, the module that
  31. contained the last command remains loaded in the system and all of its global
  32. variables remain unaltered.  Subsequent commands may reference these
  33. variables freely.
  34. The granularity of commands is quite fine.  Typical commands display the
  35. directory of a storage device, increase the font size of the text last selected or
  36. compile the contents of the active window.  A user may execute commands in
  37. any sequence and may thus be working on completely different problems in
  38. different windows at the same time.  We call this "one-process multitasking".
  39. Using Commands
  40. Commands are activated by the use of an Action Button (the control key on
  41. the Macintosh).  Pressing the Action Button while pointing at any text
  42. anywhere on the screen will try to execute a command of that name.  This
  43. may be text in a word processor document, captions in a CAD document and
  44. even the title of windows.
  45. The system will then attempt to interpret the text that is pointed at as
  46. "Modulename.Commandname" and search for the corresponding module,
  47. possibly loading it from disk if it cannot be found in memory.  If the module is
  48. present or can be loaded, it will then search for the requested command and
  49. execute it.  If the module or the command cannot be found, the system will
  50. simply resume its usual input state.
  51. A command can determine from where it was called (menu bar, body text) by
  52. inspecting certain global variables of the system and can access any text that
  53. may follow the command that was invoked (parameters).  It can also access
  54. text at the caret position and a global, time-stamped list of all text selections
  55. which are currently active in different windows on the screen.  All of these
  56. can also be used to extract parameters.
  57. The main feature of Oberon is extensibility.  A user can add an arbitrary
  58. number of commands to the system at any time simply by writing a module
  59. and compiling.  There is no need to install the command (it may be activated
  60. as soon as compilation is completed) and modules containing commands are
  61. not added to the system until an actual call is made. The <working menus> of
  62. commands that users keep (called Tools in Oberon) are regular document
  63. processor windows containing editable texts.
  64. Using the Mouse in MacOberon
  65. Oberon expects a three-button mouse.  The two buttons missing on the
  66. Macintosh are mapped onto the keyboard as follows:
  67.   control key = Action button = MM (middle) Oberon mouse button
  68.   option key = Select button = MR (right) Oberon mouse button
  69.   mouse button = Position button = ML (left) Oberon mouse button
  70. Mouse Use:
  71.   execute command = Action
  72.   position caret = Position
  73.   select range = drag Select
  74.   select to beginning of line = double click Select
  75.   move viewer = drag Position in title bar
  76.   reposition viewer = interclick Action during move
  77. Scrolling (in scroll bar):
  78.   make line next to cursor the new top line = Position
  79.   position absolutely relative to document = Action
  80.   scroll to top of document = Select
  81. Shortcuts:
  82.   copy to caret = interclick Action during Selection
  83.   copy from selection = interclick Action during Position
  84.   delete selection = interclick Position during Selection
  85.   copy format to selection = interclick Selection during Position
  86.   unload module prior to command execution
  87.     = interclick Position during Action
  88.   cancel = press all three buttons
  89. Use Edit.Open to open a window onto a file.  You may specify the name
  90. of the file you wish to open on the same line as the Edit.Open command,
  91. or alternatively you may execute a command Edit.Open followed by an ^
  92. arrow or a line break.  It will then take its parameters from the most recent
  93. selection.  Selecting the first character of the file name is sufficient (press the
  94. Option key when the mouse arrow points to it).
  95.                                                                                     Michael Franz, 17.10.90
  96. Edit.Open Test.Mod    {Simple example and instructions on using compiler}
  97. Edit.Open EdT.Mod    {A simple extension of Edit}
  98. Edit.Open TickCounter.Mod    {Oberon Tasks example}
  99.